home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / amiga / make-367.lha / make-3.67 / glob / Makefile
Makefile  |  1993-05-24  |  2KB  |  60 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for standalone distribution of libglob.a (fnmatch, glob).
  3.  
  4. # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  5. # This file is part of the GNU C Library.
  6.  
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public License
  9. # as published by the Free Software Foundation; either version 2 of
  10. # the License, or (at your option) any later version.
  11.  
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16.  
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; see the file COPYING.LIB.  If
  19. # not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  20. # Cambridge, MA 02139, USA.
  21.  
  22. # Ultrix 2.2 make doesn't expand the value of VPATH.
  23. VPATH = .
  24. srcdir = $(VPATH)
  25.  
  26. CPPFLAGS = -DHAVE_CONFIG_H
  27.  
  28. # How the invoke ar.
  29. AR = ar
  30. ARFLAGS = rv
  31.  
  32. # How to invoke ranlib.
  33. RANLIB = ranlib
  34.  
  35. .PHONY: all
  36. all: libglob.a
  37.  
  38. libglob.a: glob.o fnmatch.o
  39.     $(AR) $(ARFLAGS) $@ glob.o fnmatch.o
  40.     $(RANLIB) $@
  41.  
  42. # For some reason, Unix make wants the dependencies on the source files.
  43. # Otherwise it refuses to use an implicit rule!
  44. # And, get this: it doesn't work to use $(srcdir)/foo.c!!
  45. glob.o: $(srcdir)/glob.h $(srcdir)/fnmatch.h glob.c
  46. fnmatch.o: $(srcdir)/fnmatch.h fnmatch.c
  47.  
  48. .c.o:
  49.     $(CC) -I. -I$(srcdir) -c $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
  50.  
  51. .PHONY: clean realclean glob-clean glob-realclean
  52. clean glob-clean:
  53.     -rm -f libglob.a *.o core
  54. realclean glob-realclean: clean
  55.     -rm -f TAGS tags Makefile
  56.  
  57. # For inside the C library.
  58. glob.tar glob.tar.Z:
  59.     $(MAKE) -C .. $@
  60.